<% @product.inventories.each do |style| %>
    <tr>
      <td><%= style.size %></td>
      <td><%= style.size_number %></td>
      <td><%= style.quantity %></td>
      <!--<td><%= style.product_id %></td>-->
      <td><%= link_to 'Edit', edit_product_inventory_path(@product,style) %></td>
      <td><%= link_to 'Delete', product_inventory_path(@product,style), method: :delete, data: { confirm: 'Are you sure?' } %></td>
    </tr>
<% end %>